#!/bin/bash
source /home/stock/.bashrc

# 定义当前目录变量
current_dir="$(dirname "$0")"
killall -9 python
# 使用 nohup 在后台执行 Python 脚本，并将输出重定向到文件
nohup /home/stock/python/bin/python "$current_dir/main.py" > "$current_dir/log/main.log" 2>&1 &
nohup /home/stock/python/bin/python "$current_dir/app.py" > "$current_dir/log/app.log" 2>&1 &
#nohup mypython "$current_dir/update_code.py" > "$current_dir/log/update_code.log" 2>&1 &


ps -ef|grep python

